#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  int s = 0;
  while (cin >> k) {
    s = s * 10 + k;
  }
  s = s - 1;
  cout << s;
  return 0;
}